package com.kaochong.xcx.service;

import com.kaochong.xcx.web.aspect.CurrentUser;

import java.util.Map;

/**
 * @author han
 * @date 2018-05-03 15:43
 */
public interface PlayGameService {
	
	/**
	 * 答题
	 * @param user
	 * @param index
	 * @param answerIndex
	 * @return 下一题及完成状态
	 */
	Map<String, Object> answer(CurrentUser user, Integer index, Integer answerIndex);
	
	/**
	 * 开始学习
	 * @param user
	 * @return
	 */
	Map<String,Object> begin(CurrentUser user);
}
